import Layout from '@/layout'

const managerInfoRouter = {
  path: '/manager/info',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'ManagerInfo',
  meta: {
    title: '信息管理',
    roles: ['manager', 'admin']
  },
  children: [
    {
      path: '',
      // component: () => import('@/views/manager/info/'),
      name: '',
      meta: { title: '库存下载管理(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/info/'),
      name: '',
      meta: { title: '添加公告(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/info/'),
      name: '',
      meta: { title: '通知公告(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/info/'),
      name: '',
      meta: { title: '邮费模板(TBD)', noCache: false }
    },
    {
      path: '',
      // component: () => import('@/views/manager/info/'),
      name: '',
      meta: { title: '文档下载(TBD)', noCache: false }
    },
    {
      path: 'help',
      component: () => import('@/views/manager/info/help-list'),
      name: 'ManagerHelp',
      meta: { title: '帮助管理', noCache: false }
    },
    {
      path: 'help/:id(\\d+)/edit',
      component: () => import('@/views/manager/info/help-edit'),
      name: 'ManagerHelpEdit',
      meta: { title: '帮助编辑', noCache: false },
      hidden: true
    }
  ]
}

export default managerInfoRouter
